programming4us
           
 
 
Windows

Windows 7 : Setting Up One-Click Restarts and Shutdowns

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
11/20/2010 11:33:17 AM
My admittedly obsessive quest to minimize clicks and keystrokes is a quirk, I know, but it’s a defensible one (I keep telling myself). After all, the fewer mouse and keyboard moves you have to make—particularly when you’re doing day-to-day system drudgery—the more time you have for being a productive member of society.

Unfortunately, the technique I’m about to show you isn’t a great example of this because I’m talking here about reducing the number of clicks it takes to restart and shut down Windows 7, and how often does anyone do that in the course of a day? Still, I really like this tip because it just bugs me that I have to display the Startstop Windows 7 (which is just senseless), and it takes two clicks to do it. Bah! In this section, you learn how to restart and shut down Windows with just one measly click. menu to

At the heart of this technique is the SHUTDOWN command, which you can use to restart or shut down your computer . Here’s the full syntax:

SHUTDOWN [[/R] | [/S] | [/L] | [/H] | [/I] | [/P] | [/E] | [/A]] [/F] | [/T seconds] [/D [P:]xx:yy] [/M \\ComputerName] [/C "comment"]


/RRestarts the computer.
/SShuts down the computer.
/LLogs off the current user immediately.
/HPuts the computer into hibernation, if the computer supports hibernation mode.
/IDisplays the Remote Shutdown dialog box, which enables you to specify many of the options provided by these switches.
/PTurns off the local computer immediately (that is, without the usual warning interval).
/EEnables you to document the reason for an unexpected shutdown.
/ACancels the pending restart or shutdown.
/FForces all running programs on the target computer to shut down without warning. This, obviously, is dangerous and should be used only as a last resort.
/D [P:]major:minor]Specifies the reason for the shutdown. Include P: to indicate the shutdown is planned. Use values between 0 and 255 for major and between 0 and 65535minor. Windows also defines a number of predefined values for the majorminor parameters: for and
 majorminorReason
 00Other (Planned)
 05Other Failure: System Unresponsive
 11Hardware: Maintenance (Unplanned)
 11Hardware: Maintenance (Planned)
 12Hardware: Installation (Unplanned)
 12Hardware: Installation (Planned)
 23Operating System: Upgrade (Planned)
 24Operating System: Reconfiguration (Unplanned)
 24Operating System: Reconfiguration (Planned)
 216Operating System: Service Pack (Planned)
 217Operating System: Hot Fix (Unplanned)
 217Operating System: Hot Fix (Planned)
 218Operating System: Security Fix (Unplanned)
 218Operating System: Security Fix (Planned)
 41Application: Maintenance (Unplanned)
 41Application: Maintenance (Planned)
 42Application: Installation (Planned)
 45Application: Unresponsive
 46Application: Unstable
 515System Failure: Stop Error
 519Security Issue
 519Security Issue
 519Security Issue
 520Loss of Network Connectivity (Unplanned)
 611Power Failure: Cord Unplugged
 612Power Failure: Environment
 70Legacy API Shutdown
/M \\ComputerNameSpecifies the remote computer you want to shut down.
/T secondsSpecifies the number of seconds after which the computer is shut down. The default is 30 seconds, and you can specify any number up to 600.
/C "comment"The comment text (which can be a maximum of 127 characters) appears in the dialog box and warns the user of the pending shutdown. This comment text also appears in the shutdown event that is added to the System log in Event Viewer. (Look for an Event ID of 1074.)

For example, to restart your computer immediately, use the following command:

shutdown /r /t 0

If you’ve launched a restart or shutdown using some nonzero value for /T, and you need to cancel the pending shutdown, run SHUTDOWN with the /A switch before the timeout interval is over:

shutdown /a

Create a Restart Shortcut

Okay, let’s use our newfound knowledge of the SHUTDOWN command to set up Windows 7 with one-click restarts:

1.
Right-click an empty section of the desktop, and then select New, Shortcut. The Create Shortcut Wizard appears.

2.
In the text box, type shutdown /r /t 0, as shown in Figure 1.

Figure 1. Use shutdown /r /t 0 as the command for your restart shortcut.


3.
Click Next. The Create Shortcut wizard prompts you to enter a name for the shortcut.

4.
Type a name (such as The Amazing One-Click Restart Thingy) and then click Finish.

5.
Right-click the new shortcut and then click Properties. The shortcut’s property sheet appears.

6.
In the Shortcut tab, click Change Icon. Windows tells you that shutdown.exe contains no icons.

7.
Click OK. The Change Icon dialog box appears.

8.
Click an icon that looks “restart-y” and then click OK.

9.
Click OK. Windows applies the new icon to the shortcut.

10.
Right-click the shortcut and then click Pin to Taskbar. Windows 7 adds your icon to the taskbar, and restarts are now just a click away.

Create a Shutdown Shortcut

I think you know what comes next, right? Follow these very similar steps to add a shutdown shortcut to the Quick Launch toolbar:

1.
Right-click an empty section of the desktop, and then select New, Shortcut. The Create Shortcut Wizard appears.

2.
In the text box, type shutdown /s /t 0.

3.
Click Next. The Create Shortcut wizard prompts you to enter a name for the shortcut.

4.
Type a name (such as The Amazing One-Click Shutdown Whatsit) and then click Finish.

5.
Right-click the new shortcut and then click Properties. The shortcut’s property sheet appears.

6.
In the Shortcut tab, click Change Icon. Windows tells you that shutdown.exe contains no icons.

7.
Click OK. The Change Icon dialog box appears.

8.
Click an icon that looks “shutdown-y” and then click OK.

9.
Click OK. Windows applies the new icon to the shortcut.

10.
Right-click the shortcut and then click Pin to Taskbar. Windows 7 adds your icon to the taskbar, and restarts are now just a click away.
Other -----------------
- Windows 7 : Useful Windows 7 Logon Strategies
- Windows 7 : Customizing Startups with the Advanced Options Menu
- Windows 7 : Customizing Startups Using the Boot Configuration Data
- Windows Azure : Queue Service Architecture
- Windows 7 : Customizing Windows 7’s Open With List
- Windows 7 : Customizing the New Menu
- Windows 7 : Creating a New File Type
- Windows Vista - Sharing Files and Folders : Accessing a Shared Folder
- Windows Vista - Sharing Files and Folders : Standard Sharing
- Windows Vista - Sharing Files and Folders : Public Folder
- Windows Vista - Sharing Files and Folders : Network Discovery and Browsing
- Windows 7 : Manage Your Network - Working with a Homegroup
- Windows 7 : Manage Your Network - Creating a Homegroup
- Windows 7 : Manage Your Network - Connecting to a Network
- Multibooting Windows 7
- Windows 7 Customization : Working with Existing File Types
- Windows 7 Customization : Understanding File Types
- Windows Azure Service Life Cycle
- Backing Up and Restoring with ntbackup
- Windows Azure Service Management
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us